﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CoyoEden.Models;

namespace CoyoEden.Services
{
    public interface ICategoryService
    {
        /// <summary>
        /// Retrieves a Category from the provider based on the specified id.
        /// </summary>
        Category SelectCategory(int id);
        /// <summary>
        /// Inserts a new Category into the data store specified by the provider.
        /// </summary>
        void InsertCategory(Category category);
        /// <summary>
        /// Updates an existing Category in the data store specified by the provider.
        /// </summary>
        void UpdateCategory(Category category);
        /// <summary>
        /// Deletes a Category from the data store specified by the provider.
        /// </summary>
        void DeleteCategory(Category category);
        /// <summary>
        /// Retrieves all Categories from the provider and returns them in a List.
        /// </summary>
        List<Category> FillCategories();
    }
}
